﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:authctls="clr-namespace:AuthenticationService.Client.Controls;assembly=AuthenticationService.Client.Controls" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    x:Class="UserManager.Module.Views.LoginStatusView"
    xmlns:vm="clr-namespace:UserManager.Module.ViewModels"
    xmlns:cmds="clr-namespace:UserManager.Module.CommandBehaviors"
    mc:Ignorable="d">
    <Grid x:Name="LayoutRoot" VerticalAlignment="Top" Width="255" Background="{x:Null}">
        <authctls:LoginStatus x:Name="LoginStatusControl" VerticalAlignment="Center" 
                              Foreground="#FFE8CE25"
                              IsAuthenticated="{Binding Path=IsAuthenticated}" 
                              Username="{Binding Path=User.Name}"
                              cmds:LoginStatusCommand.Command="{Binding Path=LogonCommand}"
                              cmds:LogoutCommand.Command="{Binding Path=LogoutCommand}"/>
    </Grid>
</UserControl>
